variance of a portfolio with n assets

cross country trains seating plan coach j