ANSWER
He started with

Step-by-step explanation
Let the number be

When Andre adds 2, the number becomes,

When he multiplies by 3, the number becomes,

When 7 is subtracted, he gets,

When he adds the original number, he gets,

We now equate all this to 27,

We expand brackets to get,

Group like terms,

Simplify,



Hence the original number is 7.