Cody's current age is three times Matthew's age two years ago. Matthew is twelve years younger than Cody. How old is Cody?

AAAaannndd the bot gets it wrong yet again!

c = 3(m-2)
m = c-12
Cody is 21 and Matthew is 9

Dude, what's your problem?

To determine Cody's age, we need to follow these steps:

Step 1: Assign variables for the unknowns:
Let's use:
C for Cody's current age
M for Matthew's current age

Step 2: Utilize the given information:
1. "Cody's current age is three times Matthew's age two years ago" can be written as:
C = 3(M - 2)

2. "Matthew is twelve years younger than Cody" can be written as:
M = C - 12

Step 3: Substitute the value of M from equation 2 into equation 1:
C = 3((C - 12) - 2)

Step 4: Simplify the equation:
C = 3(C - 14)
C = 3C - 42

Step 5: Isolate the variable C on one side of the equation:
2C = 42
C = 42/2
C = 21

Therefore, Cody's current age is 21 years old.

Cody is 33 years old.