45 students were surveyed on which pet they prefer: cats or dogs. Of the students, twice as many preferred dogs to cats than cats to dogs. How many students preferred dogs? Show your work.

This is really funny

This same question was asked earlier by "who knows who" and actually answered correctly by the bot, but now it messes up again.

correct way (done by a human):
Number who prefer cats --- x
number who prefer dogs --- 2x

x + 2x = 45
x = 15

so 15 of them prefer cats and 30 prefer dogs.

45 students were surveyed

Twice as many preferred dogs to cats than cats to dogs

2x = 45

x = 22.5

22 students preferred dogs