Solution of a problem of Tarski