Kamden and Jace had some marbles. Kamden gave away 18 marbles and Jace gave away 1/3 as many marbles as Kamden. Jace had 2 more marbles left than the marbles he gave away. Kamden had twice as many marbles left as Jace. How many marbles did Kamden and Jace have in total at first?