As legal guardians, you are entitled to the exemption for your grandchild, but only one of you can claim it. Decide who should do this; it depends on who will save more in taxes for the family. You do not apportion the exemption between you.
On a sale of a principal residence, you may avoid tax under the rules.