What is the use of this 2-digit 7 segment display
To answer your first question: The two digits will only be displaying the same number if both pin 5 and 10 are active at the same time.
If you toggle between them then you can display two different digits.