Answer:
$7,000,000
Explanation:
Donor imposed restrictions can be temporary or perpetual; the $5 million in shares are restricted and should only be used for a building and the rest ($2 million) must be kept and their dividends should be used for current operations.
The whole $7 million have restricted uses, therefore they should all be reported as assets with donor restrictions.