application of a system of three linear equations to investments application of a system of three linear equations to investments