The bakers decide to arrange the cupcakes in a display. If they put 2/3 of the cupcakes in the first row, 1/4 in the second row, and the rest in the third row, how many cupcakes are in each row if there are a total of 18 cupcakes?​