Derek unpacked 126 kilograms of grapefruits and lemons. The grapefruits came in 10-kilogram bags and the lemons came in 8-kilogram bags. In all, Derek unpacked 13 bags of fruit. How many bags of grapefruits and bags of lemons did he unpack?