Medlodyjohnson12go Medlodyjohnson12go English Answered The cost of painting a room consists of two parts. One part is directly proportional to the area and the other to the square of the length of the room.