Sam goes to swim practice for 40 minutes on Sunday and 60 minutes on most weekdays. Last week she practiced for 220 minutes. How many weekdays did she practice? You should write an equation in the form of:

px + q = r to help you solve this.

Let's denote the number of weekdays Sam practiced as y.

Based on the information given, we can write the equation:
p * x + q = r
Where p represents the duration of Sam's practice on weekdays (60 minutes), x represents the number of weekdays, q represents the duration of Sam's practice on Sunday (40 minutes), and r represents the total duration of Sam's practice (220 minutes).
Substituting the given values, we have:
60y + 40 = 220