Five friends are standing in a line: John, James, Robert, Mary and Lucy.
(i) One of the two persons at the extreme ends is John and other is Lucy.
(ii) Robert is to the left of Lucy.
(iii) Mary is standing between John and James.
Find the position of James.