Олимпиадный тренинг

Задача 38870. Scandinavian flag


Задача

Темы:
On the flags of the Scandinavian countries, a cross is depicted shifted to the left, as, for example, on the flag of Sweden.
Let the height of the flag image be n, the length be m (see figure), and the thickness of the horizontal and vertical stripe be k. The yellow stripes break the flag into four blue parts, while the left parts are squares. Find the area of ​​the top right blue part.
The answer to this problem is some expression that can contain integers, n, m and k variables (written in English letters), addition operations ( denoted by "+"), subtractions (noted "-"), multiplications (noted "*"), divisions (denoted by  ""/") and parentheses to change the order. An entry like "2n" to denote the product of the number 2 and the variable n is incorrect, you need to write "2 * n".
An example of a correct response form.
n/2+(m*k - n) *2