Matilda and Ellie each take 21 of the wall. Matilda paints 21 of her half, or 21×21=41 of the entire wall. Ellie paints 31 of her half, or 31×21=61 of the entire wall. Therefore, 41+61=123+122=125 of the wall is painted red.
Source: Omni-MATH,
licensed Apache-2.0.
Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.