To answer this question, first we have to find the values of A and k in the equation, to do it we can use some of the information given in the statement.
For example, to find A, we have to use the initial temperature of the cake, which is the value of T at t=0, and the temperature of the room:
A has a value of 287.
To find the value of k, use the the temperature after 12 minutes, which is T when t=12, the value of A and the temperature of the room:
Now, that we know the values of A and k, we can find t when the temperature is 135:
It means that it will take 45.15 minutes for the cake to cool to 135°.