Not sure if I understood correctly. But if I am correct you want to get the average number of sales orders made by a sales person. Correct? If so, you can do like this:
SELECT
salespersonid AS SalesPersonId,
SUM(orders) AS Numbers,
AVG(orders) AS Average
FROM
#temp2
GROUP BY
salespersonid