The total cost of a tablet device comprises the cost of material, labour and overheads in the ratio 3:4:1. The cost of material is $315. What is the total cost of the tablet?​