Kendra had twice as much money as kareem. Kendra later spent $8 and kareem earned $6. By then,the two had the same amount of money. How much money did each have originally?