Hola otra vez.
Prueba esta segunda opción.
Código:
<script>
subram=0
subhd=0
preciotot=0
precio=50;
///////////////////////////////////
function comprueba(esto){
if(esto=="pequena"){
subram=25;
}
if(esto=="grande"){
subram=30;
}
if(esto=="little"){
subhd=35;
}
if(esto=="big"){
subhd=45;
}
preciotot = ((subram) + (subhd) + (precio));
document.getElementById('totales').innerHTML = preciotot;
}
</script>
<form name=sol>
<input name="ram" type="radio" onclick="comprueba(this.value);" value="pequena">RAM 1
<input name="ram" type="radio" onclick="comprueba(this.value);" value="grande">RAM 2
<br>
<input name="hd" type="radio" onclick="comprueba(this.value);" value="little">HD 1
<input name="hd" type="radio" onclick="comprueba(this.value);" value="big">HD 2
<br><div id="totales"></div>
<p>
</form>
Con este código, el precio se te va actualizando a medida que seleccionas el componente.