6. (10%) Let $V$ be the vector space of all real numbers in the form

$$a + b\sqrt{2} + c\sqrt{7},$$

where $a, b$, and $c$ are rational numbers. Find $\dim(V)$ and a basis of $V$.