*Tom and Bob are brothers and they each had the same amount of money which they put together to buy a toy. The cost of the toy was $22. If the cashier gave them a change of 6$, how much money did each have?*