Kenny bought a few 2-litre bottles of detergent. Sue bought a few 3-litre bottles of detergent. The average amount of detergent both of them had was 5y litres. Kenny and Sue bought the same number of bottles of detergent. How many bottles of detergent did each of them buy?