A singer and a producer each wrote songs for an upcoming album. The singer wrote 6 fewer than twice the number of songs that the producer wrote. They wrote a total of 54 songs. How many songs did the singer and producer wrote?