The next step was to find the XYZ values of this resulting spectrum, which can be used to then find RGB values.
The XYZ values are easily obtained by matrix multiplication - the standard CIE XYZ functions learned in class.
Since we are dealing with a reflectance spectrum under D65 light, and since our final goal is to display the color on an sRGB monitor, the ideal matrix to use now is XYX2sRGB (also learned in class).