```
set.seed(15)
x=runif(10,1,15) # random x coord
y=runif(10,1,15) # random y coord
a=runif(10,1,15)
b=runif(10,1,15)
x=as.integer(x)
y=as.integer(y)
a=as.integer(a)
b=as.integer(b)
X=7.5
Y=7.5
store=cbind(X,Y)
onlineloc=cbind(x,y)
instore=cbind(a,b)
plot(x,y,main="Online and instore customer loc",col=" red")
points(a,b,pch=2)
points(X,Y,pch=15)
distance=dist(instore)
distance
```

it calculate the inter distances in lower pyramid but i need to calculate distances of instore and onlineloc from center point(store) please guide