Ram compatibility is tricky. The rams could have matching size, speeds,voltages, cas latency and work in theory, but you can't be sure until you try. Most people will tell you that it's a bad idea to mix ram sticks and you are better off buying identical rams.