Cards marked with numbers 5 to 50 are placed in a box and mixed thoroughly. A card is drawn from the box at random. Find the probability that the number on the taken out card is
(i) a prime number less than 10
(ii) a number which is a perfect square.