Are these sentences both correct?

A. There seemed no way he could pass the test.

B. There seemed to be no way he could pass the test.

Thanks!

2017-04-11T00:37:33.809Z