From the /etc/passwd file, take the 5th and 7th fields separated by a colon, filter out any lines without a colon, take the first 15 lines, and sort the results in unique order.
cut -d: -f5,7 /etc/passwd | grep ":" | head -n 15 | sort -u