Jenny invited Gianna to go watch a movie with her family. The movie was being shown in both 3D and on a regular screen. The cost of the 3D ticket was double the cost of the regular admission ticket. If r is the price of a regular ticket and d is the price of a 3D ticket, write an equation to represent the relationship between the two types of tickets.