A farmer harvested t bags of maize, k bags of wheat and 2r bags of rice. How many bags did she harvest altogether?