Three parallel lines ℓ1,ℓ2 and ℓ3 of a plane are given such that the line ℓ2 has the same distance a from ℓ1 and ℓ3. We put 5 points M1,M2,M3,M4 and M5 on the lines ℓ1,ℓ2 and ℓ3 in such a way that each line contains at least one point. Detennine the maximal number of isosceles triangles that are possible to be formed with vertices three of the points M1,M2,M3,M4 and M5 in the following cases:
(i) M1,M2,M3∈ℓ2,M4∈ℓ1 and M5∈ℓ3.
(ii) M1,M2∈ℓ1,M3,M4∈ℓ3 and M5∈ℓ2.