Pedro types 18 words per minute. Let m represent the total number of minutes Pedro types and w represent the total number of words he typed.
18m = w
And that's your equation......