solve pcm
test 12