<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Principal Pague</title>
</head>
<body>
<script type="text/javascript">
var years=2022;
document.write("<br>");
document.write("<br>");
document.write("Juan have: "+(years-2000)+" years");
document.write("<br>");
document.write("<br>");
document.write("Pedro have: "+(years-1995)+" years");
document.write("<br>");
document.write("<br>");
document.write("Carlos have: "+(years-2005)+" years");
document.write("<br>");
document.write("<br>");
var ageJuan=10;
var agePedro=25;
var ageCarlos=15;
var nombre1= "Juan";
var nombre2="Pedro";
var nombre3="Carlos";
average=(ageJuan+agePedro+ageCarlos)/3;
document.write("<br>");
document.write("The total average of :" + nombre1 +", " + nombre2 + " y " + nombre3 +" "+ Math.round(average));