Let $p$ be a prime number and let $M$ be a convex polygon. Suppose that there are precisely $p$ ways to tile $m$ with equilateral triangles with side $1$ and squares with side $1$. Show there is some side of $M$ of length $p-1$.
Problem
Source: 2022 Tournament of towns Spring Junior A level
Tags: number theory, prime numbers, geometry