Formulas for sums of squares and products of Pell numbers