Dimensions of the room are,
Let,
S The total surface area to whitewash
A1 The lateral surface area of the room
A2 The surface area of ceiling
R The rate of whitewashing per
We know that,
We are asked to find the cost of whitewashing
Now, the total surface area to whitewash,
Total cost of whitewashing,
Hence the cost of whitewashing the room and the ceiling is .