Leila has $134, and Dianne had $180. After both of them spent an equal amount of money shopping, Dianne had 3 times as much money as Leila. How much did each of them spend?