4. Josip painted a wooden fence around his garden. Over the weekend, he painted $12 \mathrm{~m}$ more than $\frac{3}{8}$ of the total length of the fence. On Monday, he painted $3 \mathrm{~m}$ more than $\frac{1}{4}$ of the total length of the fence, and on Tuesday, $\frac{1}{3}$ of the length he painted over the weekend and on Monday. On Wednesday, he painted the remaining part of the fence, which was exactly $\frac{1}{24}$ of the total length of the fence. How long is the fence around Josip's garden?
4. Let $x$ denote the length of the fence in meters.

Over the weekend, he painted $\frac{3}{8} \cdot x + 12$ meters of the fence.

On Monday, he painted $\frac{1}{4} \cdot x + 3$ meters of the fence.

1 point

On Tuesday, he painted $\frac{1}{3} \cdot \left(\frac{3}{8} \cdot x + 12 + \frac{1}{4} \cdot x + 3\right) = \frac{1}{3} \cdot \left(\frac{5}{8} \cdot x + 15\right) = \frac{5}{24} \cdot x + 5$ meters of the fence. 2 points

On Wednesday, he painted $\frac{1}{24} \cdot x$ meters of the fence.

In total, he painted:

$\frac{3}{8} \cdot x + 12 + \frac{1}{4} \cdot x + 3 + \frac{5}{24} \cdot x + 5 + \frac{1}{24} \cdot x = $

$\frac{21}{24} \cdot x + 20 = \frac{7}{8} \cdot x + 20$ meters of the fence,

2 points

which is equal to the entire length of the fence, i.e.,

1 point

the length of $\frac{1}{8}$ of the fence is $20 \text{ m}$, i.e.,

2 points

the length of the entire fence of Josip's garden is $8 \cdot 20 = 160 \text{ m}$.

1 point

TOTAL 10 POINTS