Martin charges $12 for every 3 bags of leaves he rakes. Last weekend, he raked 27 bags of leaves. How much money did he earn?