Solved problem B